﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Workflows.Components.TextMining.PdfBookmarkExtraction
{
    /// <summary>
    /// 
    /// </summary>
    [Serializable]
    public class PdfContentFilter
    {
        private string _HeaderPattern;
        /// <summary></summary>
        public string HeaderPattern
        {
            get
            {
                return this._HeaderPattern;
            }
            set
            {
                this._HeaderPattern = value;
            }
        }

        private bool _SkipHeader;
        /// <summary></summary>
        public bool SkipHeader
        {
            get
            {
                return this._SkipHeader;
            }
            set
            {
                this._SkipHeader = value;
            }
        }

        private string _FooterPattern;
        /// <summary></summary>
        public string FooterPattern
        {
            get
            {
                return this._FooterPattern;
            }
            set
            {
                this._FooterPattern = value;
            }
        }

        private bool _SkipFooter;
        /// <summary></summary>
        public bool SkipFooter
        {
            get
            {
                return this._SkipFooter;
            }
            set
            {
                this._SkipFooter = value;
            }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="headerPattern"></param>
        /// <param name="skipHeader"></param>
        /// <param name="footerPattern"></param>
        /// <param name="skipFooter"></param>
        public PdfContentFilter(string headerPattern, bool skipHeader, string footerPattern, bool skipFooter)
        {
            this._HeaderPattern = headerPattern;
            this._FooterPattern = footerPattern;
            this._SkipHeader = skipHeader;
            this._SkipFooter = skipFooter;
        }
    }
}
